<?php
// This is what handles the sessions between page loads- this will get loaded and constructed each time, but that doesn't matter
//	This will be loaded, and this will check for the session object
class Session
{
	public $session = array();
	function __construct($sess = null)
	{
		if($sess == null)
		{
			if(isset($_SESSION['obj']))
				$sess = unserialize($_SESSION['obj']);
		}
		$this->session = $sess;
	}
	function __destruct()
	{
		$this->serialize();
	}
	public function add_item(&$item, $label)
	{
		// Testing tis 
		$this->session[$label] = $item;
	}
	public function serialize()
	{
		$_SESSION['obj'] = serialize($this->session);
	}
}
?>